<?php require ('./order.php'); ?>
<?php
//if(isset($_POST["submit"])){
session_start();  
echo $_SESSION['UserName'];

   //if(!empty($_POST['SAPBuyNo'])){ $SAPBuyNo=$_POST['SAPBuyNo']; }  
   if(!empty($_POST['U_OrderId'])){ $U_OrderId=$_POST['U_OrderId']; } 
   if(!empty($_POST['U_expressCom'])){ $U_expressCom=iconv("utf-8", "GB18030",$_POST['U_expressCom']); } 
   if(!empty($_POST['U_CitemCd'])){ $U_CitemCd=$_POST['U_CitemCd']; } 
   if(!empty($_POST['U_expressNO'])){ $U_expressNO=$_POST['U_expressNO']; } 
   if(!empty($_POST['U_ItemCode'])){ $U_ItemCode=iconv("utf-8", "GB18030",$_POST['U_ItemCode']); } 
   # code...
   $sql= "exec [AX_Replace_Order_Update] '".$U_OrderId."','".$U_expressCom."#".$U_expressNO."','".$U_ItemCode."','".$U_CitemCd."','".$_SESSION['UserName']."','U_expressComandNO'";
   $ddf=odbc_exec($sqlconnection,$sql);
   //echo $sql;
   //echo "</br>";
  
   odbc_close($sqlconnection);

?>
